package de.fhbrs.fedora;

import java.util.regex.Pattern;

public class Utility {
	public static String[] convertToArray(String x){	
		String regex = "\",\"";
		String [] carved = Pattern.compile(regex).split(x);
		carved[0]=carved[0].substring(1,carved[0].length());
		carved[carved.length-1]=carved[carved.length-1].substring(0,carved[carved.length-1].length()-1);
		for(int i=0;i<carved.length;i++){
			carved[i].trim();
		}
		return carved;
	}
}
